import { IHomeState } from '@/typings'
import { Module } from 'vuex'
import { IGlobalState } from '..'

import state from './state'
import mutations from './mutations'
import actions from './actions'

// Module是vuex store模块的基本类型，接收两个泛型
// 1、当前模块 state的类型，vuex全局state的类型
const homeModele: Module<IHomeState, IGlobalState> = {
    namespaced: true,// 开启命名空间
    state,
    mutations,
    actions
}

export default homeModele